const app = getApp();
Page({
  data: {},
  onLoad: function (options) {
    var that = this;
    var scene = decodeURIComponent(options.scene); // 生成页面的二维码

    tt.request({
      url: 'https://www.hanzhuo123.com/xiaochengxu/tp0303/public/index.php/api/v1/SmallProgramCode',
      data: {},
      method: "get",
      responseType: 'arraybuffer',

      //设置响应类型
      success(res) {
        console.log(res);
        var src2 = res; //对数据进行转换操作

        console.log(src2);
        that.setData({
          src2
        });
      },

      fail(e) {
        console.log(e);
      }

    });
  }
});